package com.foton.ai.service.impl;

import com.foton.ai.service.TongYiService;
import org.springframework.ai.image.ImageResponse;


/**
 * tongYi处理实现类 抽象类
 */
public abstract class AbstractTongYiServiceImpl implements TongYiService {

    private static final String INFO_PREFIX = "please implement ";
    private static final String INFO_SUFFIX = "() method.";

   @Override
    public String completion(String message) {

        throw new RuntimeException(INFO_PREFIX + Thread.currentThread().getStackTrace()[2].getMethodName());
    }

    @Override
    public ImageResponse genImg(String imgPrompt) {
        return null;
    }

    @Override
    public String genAudio(String text) {
        return null;
    }
}
